package com.xing.DTO;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @version 1.0
 * @Author Xing
 * @Date 2024/7/16 11:46
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long postId;
    private String title;
    private String content;
    private Long userId;
    private Integer status;
    private Date created;
}
